
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!-- f标签 取得jsp一些函数工具 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="f"%>
<!-- 格式化标签 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<% String path = request.getContextPath();%>
<script type="text/javascript" src="<%=path%>/js/ckeditor/ckeditor.js"></script>
<link rel="stylesheet" type="text/css" href="<%=path%>/js/ckeditor/contents.css"/>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <form>
           标题: <input type="text" id="artTitle" name="artTitle"><br>
            文章内容：
            <div class="editor">
                <textarea name="artContent">
                </textarea>
            </div><br>
            类型：<select name="artType" id="artType">
                <option value="-1">类型选择</option>
               <c:forEach items="${artTypes}" var="c">
                <option value="${c.typeId}">${c.typeName}</option>
                 </c:forEach>
<%--                <option value="1">吐槽</option>
                <option value="2">文艺</option>
                <option value="3">活动</option>--%>
        </select><br>

        </form>
</body>
</html>
    <script>

        $(function () {
            CKEDITOR.replace("artContent");
        })
    </script>